package com.wg.controller;

import com.wg.R;
import com.wg.entity.Jobs;
import com.wg.service.JobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/jobs")
public class JobController {

    @Autowired
    JobService jobService;

    @GetMapping
    public R<List<Jobs>> getJobs() {
        return jobService.getJobs();
    }
}
